from pathlib import Path
import yaml

def get_yaml(filename):
    current_dir = Path(__file__).parent
    yaml_path = current_dir / '..' / 'data' / f'{filename}'
    yaml_path = yaml_path.resolve()
    with open(yaml_path, 'r', encoding='utf-8') as f:
        data = yaml.safe_load(f)  
    return data
